import { Command } from "../class/Command";

/**
 * 释放技能
 */
export class CallMethod extends Command {
    static commandName: string = "释放";
    invoke() {
        // 获取技能的名字
        const methodName = this.context.nextParam();
        // 获取当前释放技能的角色
        const role = this.game.getRole(this.context.getId());
        // 调用技能
        role.callMethod(methodName, this.context);
    }

}